/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ban.jr.swb.rest.mq.utils;

import java.io.IOException;
import org.apache.log4j.Logger;

/**
 *
 * @author Administrator
 */
public class HttpGetUtil {

    public static Logger logger = Logger.getLogger(HttpGetUtil.class);

    public static String httpGet(String uri) {
        try {
            return org.apache.http.client.fluent.Request.Get(uri).execute().returnContent().asString();
        } catch (IOException ex) {
            logger.error(ex.getMessage(), ex);
            return "";
        }
    }
}
